<div class="produce list">

  <%= link_to("Coffee",:action => 'list_coffee') %> 
  <%= link_to("Snack",:action => 'list_snack') %> 
  <%= link_to("Thức uống khác",:action => 'list_beverage') %> 

	<div class="feature" >
  		<h2>Danh sách sản phẩm</h2>
  	</div>


  <!--<%= link_to("+ Add New Produce", {:action => 'new'}, :class => 'action new') %>
  <!-- $temp use to count number of produce -->

  <table class="listing" sumary="Cart list">
  	
	<% @produces.each do |produce| %>
	<tr>
		<td class="center">
			<%= link_to(image_tag("HOG_Blend_coffee.jpg", :alt => "HOG Blend"), {:action => 'show', :id => produce.id}, :class => 'action show') %>
			<%= link_to(produce.name, {:action => 'show', :id => produce.id}, :class => 'action show') %>
  			<%= produce.origin %>
  			<%= link_to("Thêm vào giỏ hàng", {:action => 'add_to_cart', :id => produce.id}) %>
		</td>
	</tr>
	<% end %>
  </table>


  <%= will_paginate @produces %>
</div>
